<?php get_header(); ?>

	<div id="content" class="grid_8">

		<?php if ( have_posts() ) the_post(); ?>
		
			<h1 class="page-title">
				<?php if ( is_day() ) : ?>
								<?php the_time('l, F jS, Y') ?>
				<?php elseif ( is_month() ) : ?>
								<?php the_time('F Y') ?>
				<?php elseif ( is_year() ) : ?>
								<?php the_time('Y') ?>
				<?php elseif ( is_category() ) : ?>
								<?php echo single_cat_title(); ?>
				<?php elseif ( is_author() ) : ?>
								Entries from: <?php the_author(); ?>
				<?php else : ?>
								Archive
				<?php endif; ?>
			</h1>

	        <?php rewind_posts(); ?>
	        
			<?php while (have_posts()) : the_post(); ?>
	
	            <div class="clearfix">
	        		<?php if ( has_post_thumbnail() ) {  // check if the post has a Post Thumbnail assigned to it. ?>
		                <div class="grid_2 alpha">
		        		
		        		    <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
		        		        <?php the_post_thumbnail('thumbnail'); ?>
		        		    </a>
		        	    </div>
						<div class="grid_6 omega">
					<?php } else { ?>
						<div class="grid_8 alpha">
					<?php } ?>
					
	                    <p class="postmetadata"><?php the_time('l, F jS, Y') ?></p>
	                    <h3 class="headline"><strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></strong></h3>
	                    <?php the_excerpt(); ?>
	                </div>		
	            </div> <!--end grid_6 or 8 -->	
	            
	            <hr />
	            
			<?php endwhile;?>
	    </div> <!--end grid_8 -->
		
<?php get_sidebar(); ?>
<?php get_footer(); ?>
